aboutsummaryrefslogtreecommitdiffstats
path: root/syncterm [disowned]/watch-
diff options
context:
space:
mode:
Diffstat (limited to 'syncterm [disowned]/watch-')
-rwxr-xr-xsyncterm [disowned]/watch-21
1 files changed, 21 insertions, 0 deletions
diff --git a/syncterm [disowned]/watch- b/syncterm [disowned]/watch-
new file mode 100755
index 0000000..c427d98
--- /dev/null
+++ b/syncterm [disowned]/watch-
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+[ -f release ] && rm release
+
+wget http://syncterm.bbsdev.net -O - 2>/dev/null | grep "syncterm-src.tgz" > release
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum release > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'syncterm'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'syncterm (unfetchable)'
+fi
+